package bomberman;

import java.io.Serializable;

/**
 *
 * @author eirikb
 */
public class User implements Serializable {

    private String nick;
    private String character;
    private boolean ready;
    private Game game;

    public User(String nick) {
        this.nick = nick;
        character = "default";
    }

    public String getNick() {
        return nick;
    }

    public String getCharacter() {
        return character;
    }

    public boolean isReady() {
        return ready;
    }

    public Game getGame() {
        return game;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public void setCharacter(String character) {
        this.character = character;
    }

    public void setReady(boolean ready) {
        this.ready = ready;
    }

    public void setGame(Game game) {
        this.game = game;
    }

    @Override
    public String toString() {
        if (ready) {
            return "[X] " + nick;
        } else {
            return "[ ] " + nick;
        }
    }
}
